package cn.ziyoufa.smart.smartschool.manager;

import cn.ziyoufa.smart.smartschool.module.scheme.SchemeValue;

/**
 * 创建人 ： 赵泽东
 * 创建时间：2018/9/6
 *
 * @param
 * @param
 */
public class SchemeManager {
    private static SchemeManager schemeManager = null;
    private SchemeValue schemeValue = null;
    private String scheme_id;
    private Long timeReduce;//时间差

    public String getE_week() {
        return e_week;
    }

    public void setE_week(String e_week) {
        this.e_week = e_week;
    }

    private String e_week;//开启周

    public static SchemeManager getInstance(){
        if(schemeManager == null){
            synchronized (SchemeManager.class){
                if(schemeManager == null){
                    schemeManager = new SchemeManager();
                }
                return schemeManager;
            }
        }else{
            return schemeManager;
        }
    }

    public void setSchemeValue(SchemeValue schemeValue){
        this.schemeValue = schemeValue;
    }

    public SchemeValue getSchemeValue() {
        return schemeValue;
    }

    public String getScheme_id() {
        return scheme_id;
    }

    public void setScheme_id(String scheme_id) {
        this.scheme_id = scheme_id;
    }

    public boolean hasExist(){
        return schemeValue == null ? false :true;
    }

    public void removeScheme(){
        this.schemeValue = null;
        this.timeReduce = null;
        this.scheme_id = null;
        this.e_week = null;
    }

    public Long getTimeReduce() {
        return timeReduce;
    }

    public void setTimeReduce(Long timeReduce) {
        this.timeReduce = timeReduce;
    }
}
